package com.yangl.domain;

/**
 * Created by lyang on 2016/10/20.
 */
public enum ResultWrapperEnum {

    SUCCESS("0000", "操作成功"),
    LIST_FAILURE("0001", "获取失败"),
    SAVE_FAILURE("0002", "保存失败"),
    UPDATE_FAILURE("0003", "更新失败"),
    DEL_FAILURE("0004", "删除失败"),
    CAST_FAILURE("0010", "解析请求对象失败"),
    REQUEST_BAD("0011", "404,无效的请求"),
    REQUEST_BUSY("0012", "500,系统繁忙");
    private String code;

    private String message;

    private ResultWrapperEnum(String code, String message){
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}